﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvansRS.Domain;
using StructureMap;
using AvansRS.Domain.DataInterface;

namespace AvansRS.Data.InsertBuilders
{
    class InsertPerson : Insert<Person>
    {
        public InsertPerson()
            : base(new Person())
        {

        }

        public InsertPerson WithFirstName(string firstName)
        {
            Instance.FirstName = firstName;
            return this;
        }

        public InsertPerson WithSurName(string surName)
        {
            Instance.SurName = surName;
            return this;
        }

        public InsertPerson WithNumber(int number)
        {
            Instance.Number = number;
            return this;
        }

        public InsertPerson WithAccount(Account account)
        {
            Instance.Account = account;
            return this;
        }

        public InsertPerson WithEntity(Entity entity)
        {
            Instance.Entity = entity;
            return this;
        }
    }
}
